package com.campus.campus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.campus.campus.job.dto.ElectricityUsageDTO;
import com.campus.campus.job.entity.UtilityBills;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 公用费用表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-11-18
 */
public interface UtilityBillsMapper extends BaseMapper<UtilityBills> {

    List<ElectricityUsageDTO> getWeeklyUsageForMonth(@Param("startTime") String startTime,
                                                     @Param("endTime") String endTiame,
                                                     @Param("way") String way);

    List<ElectricityUsageDTO> getDailyUsageForWeek(@Param("startTime") String startTime,
                                                   @Param("endTime") String endTiame,
                                                   @Param("way")String way);
}
